//
//  BaseViewController.swift
//  weibo
//
//  Created by ForeverOSS on 16/2/12.
//  Copyright © 2016年 foreveross. All rights reserved.
//

import UIKit

class BaseViewController: UITableViewController {

    ///访客视图
    var visitorView:VisitorLoginView?
    
    /// 用户登录标记
    var  userlogon = false
    override func loadView() {
        userlogon ? super.loadView():setupVisitorView()
    }
    
    /// 设置访客试图
    private func setupVisitorView(){
    
        visitorView = VisitorLoginView()
        view = visitorView
        
        //设置导航栏按钮
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", style: .Plain, target: nil, action: nil)
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", style: .Plain, target: nil, action: nil)
    
    }

}
